Don't unnecessarily queue resize in GtkWindow.style_updated
authorAlexander Larsson <alexl@redhat.com>
Tue, 4 Dec 2012 15:38:23 +0000 (16:38 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 4 Dec 2012 20:24:24 +0000 (21:24 +0100)
GtkWindow always queues a resize on style updates if there is
a grip, because it may have been the grip size style properties
that changed. However, even if it *were*, and it likely wasn't
that would not affect the windows size request, so no need
to queue a resize.

gtk/gtkwindow.c

index 26cd8f61d5e2f1670db11d1b519f94aec34cf949..db6eb7af0c5111ca0cc5504d5807451ef2f8e9c6 100644 (file)
@@ -5735,7 +5735,6 @@ gtk_window_style_updated (GtkWidget *widget)
                               rect.width, rect.height);
 
       set_grip_shape (window);
-      gtk_widget_queue_resize (widget);
     }
 }